<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">
            
			<div class="layui-form-item">
				<label class="layui-form-label">供应商名称</label>
				<div class="layui-input-block">
				  <input type="text" name="sup_name" value="{$model.sup_name??''}" placeholder="请输入供应商名称" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">版布结算</label>
				<div class="layui-input-block">
					{php}if(!$action_up) $model["cut_payment"]=1;{/php}
					{volist name="options.cut_payment" id="v"}
					{if $v.id == $model.cut_payment}
					<input type="radio" name="cut_payment" title="{$v.val}" value="{$v.id}" checked>
					{else/}
					<input type="radio" name="cut_payment" title="{$v.val}" value="{$v.id}">
					{/if}
					{/volist}
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">大货结算</label>
				<div class="layui-input-block">
					{php}if(!$action_up) $model["bulk_payment"]=1;{/php}
					{volist name="options.bulk_payment" id="v"}
					{if $v.id == $model.bulk_payment}
					<input type="radio" name="bulk_payment" title="{$v.val}" value="{$v.id}" checked>
					{else/}
					<input type="radio" name="bulk_payment" title="{$v.val}" value="{$v.id}">
					{/if}
					{/volist}
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">提货方式</label>
				<div class="layui-input-block">
				  <select name="exp_method" >
                    <option value=""></option>
                    {volist name="options.exp_method" id="v"}
                    {if !$action_up}
                    <option value="{$v.name}">{$v.name}</option>
                    {elseif $v.name == $model.exp_method}
                    <option value="{$v.name}" selected="selected">{$v.name}</option>
                    {else/}
                    <option value="{$v.name}">{$v.name}</option>
                    {/if}
                    {/volist}
                  </select>
				</div>
			</div>
            
            <div class="layui-form-item">
                <label class="layui-form-label">发货物流</label>
                <div class="layui-input-block">
                  <select name="exp_name" >
                    <option value=""></option>
                    {volist name="options.exp_name" id="v"}
                    {if !$action_up}
                    <option value="{$v.name}">{$v.name}</option>
                    {elseif $v.name == $model.exp_name}
                    <option value="{$v.name}" selected="selected">{$v.name}</option>
                    {else/}
                    <option value="{$v.name}">{$v.name}</option>
                    {/if}
                    {/volist}
                  </select>
                </div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">散剪公斤</label>
            	<div class="layui-input-block">
            		{php}if(!$action_up) $model["bulk"]=0;{/php}
            		{volist name="options.bulk" id="v"}
            		{if $v.val == $model.bulk}
            		<input type="radio" name="bulk" title="{$v.name}" value="{$v.val}" checked>
            		{else/}
            		<input type="radio" name="bulk" title="{$v.name}" value="{$v.val}">
            		{/if}
            		{/volist}
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">散剪加价</label>
            	<div class="layui-input-block">
            	  <input type="text" name="bulk_price" value="{$model.bulk_price??''}" placeholder="请输入散剪加价" class="layui-input" >
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">微信</label>
            	<div class="layui-input-block">
            	  <input type="text" name="weixin" value="{$model.weixin??''}" placeholder="请输入微信" class="layui-input" >
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">电话</label>
            	<div class="layui-input-block">
            	  <input type="text" name="phone" value="{$model.phone??''}" placeholder="请输入电话" class="layui-input" >
            	</div>
            </div>
            
            <div class="layui-form-item">
            	<label class="layui-form-label">地址</label>
            	<div class="layui-input-block">
            	  <input type="text" name="address" value="{$model.address??''}" placeholder="请输入联系地址" class="layui-input" >
            	</div>
            </div>
            
			<div class="layui-form-item">
				<label class="layui-form-label">备注</label>
				<div class="layui-input-block">
                    <textarea name="remark" placeholder="请输备注" class="layui-textarea">{$model.remark??''}</textarea>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">状态</label>
				<div class="layui-input-block">
					<input type="checkbox" lay-skin="switch" value="status" lay-text="启用|禁用" {if $model.status??1 == 1} checked {/if}><input type="hidden" name="status" value="{$model.status??1}">
				</div>
			</div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
	layui.use(['form', 'jquery', 'uploads','common','mycomm','table'], function () {
		let form = layui.form;
		let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;
		let table = layui.table;
		
		mycomm.editSubmit();
		
		
	})
</script>
{$LOAD_STYLE.bottom|raw}

</body>
</html>